package xing.domain.page;

import xing.domain.page.dto.ModuleInfo;
import xing.infrastructure.data.EntityBase;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

@Entity
@Table(name="page_template")
public class PageTemplate implements Serializable {
  private Long id;
  private String name;
  private Integer templatetype;
  private Long masterid;
  private boolean iscurrent;
  private String companycode;
  private boolean isrelease;
  private String thumb;
  private java.sql.Timestamp updated;
  private java.sql.Timestamp created;

  private List<PageModule> modules=new ArrayList<>();
  @Transient
  public List<PageModule> getModules() {
    return modules;
  }

  public void setModules(List<PageModule> modules) {
    this.modules = modules;
  }

  @Id
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }
  @Column(name = "Templatetype")
  public Integer getTemplatetype() {
    return templatetype;
  }

  public void setTemplatetype(Integer templatetype) {
    this.templatetype = templatetype;
  }

  public Long getMasterid() {
    return masterid;
  }

  public void setMasterid(Long masterid) {
    this.masterid = masterid;
  }

  public boolean getIscurrent() {
    return iscurrent;
  }

  public void setIscurrent(boolean iscurrent) {
    this.iscurrent = iscurrent;
  }

  public String getCompanycode() {
    return companycode;
  }

  public void setCompanycode(String companycode) {
    this.companycode = companycode;
  }

  public String getThumb() {
    return thumb;
  }

  public void setThumb(String thumb) {
    this.thumb = thumb;
  }

  public boolean getIsrelease() {
    return isrelease;
  }

  public void setIsrelease(boolean isrelease) {
    this.isrelease = isrelease;
  }

  public Timestamp getUpdated() {
    return updated;
  }

  public void setUpdated(Timestamp updated) {
    this.updated = updated;
  }

  public java.sql.Timestamp getCreated() {
    return created;
  }

  public void setCreated(java.sql.Timestamp created) {
    this.created = created;
  }
}
